package org.emet.entity.biz;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

import org.apache.commons.lang.builder.ToStringBuilder;
import org.emet.help.CGResource;
import org.emet.jee.console.entity.BaseEntity;
import org.hibernate.annotations.Cache;
import org.hibernate.annotations.CacheConcurrencyStrategy;

@Entity
@Table(name = "T_CREMATOR")
@Cache(usage = CacheConcurrencyStrategy.READ_WRITE)
public class Cremator extends BaseEntity {
	@CGResource("名称")
	private String name;
	//状态分为三种：预定(R)，使用中(B)，暂停使用(U)，空闲(O)
	@CGResource("状态")
	private String status;
	@CGResource("备注")
	private String remark;

	@Column(unique = true)
	public String getName() {
		return name;
	}

	public String getStatus() {
		return status;
	}

	public void setStatus(String status) {
		this.status = status;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getRemark() {
		return remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}

	@Override
	public String toString() {
		return ToStringBuilder.reflectionToString(this);
	}
}